public class Demo09 {
    public static void main(String[] args){
        int[] ns = new int[5];
        ns[0] = 68;
        ns[1] = 79;
        ns[2] = 91;
        ns[3] = 85;
        ns[4] = 62;
        System.out.println(ns.length);
        // System.out.println(ns[5]);
        // 5位同学的成绩:
        int[] ns1 = new int[] { 68, 79, 91, 85, 62 };
        System.out.println(ns1.length); // 编译器自动推算数组大小为5
        int[] ns2 = {68, 79, 91, 85, 62};
    }
}
